import Vue from 'vue'
import App from './App.vue'
// 按需加载：参考：https://www.antdv.com/docs/vue/use-with-vue-cli-cn/
import {
  Button,
  Checkbox,
  Table,
  Input,
  Radio,
  Select,
  message,
  FormModel,
  modal,
  Icon,
  Modal,
  Popconfirm,
  Upload
} from 'ant-design-vue'
import router from './router'

// 全局样式
import '@/assets/styles/basic.less'
import '@/assets/styles/global.less'
import '@/assets/styles/atom.less'

import './components/lowcode'

Vue.use(Button)
Vue.use(Checkbox)
Vue.use(Input)
Vue.use(Radio)
Vue.use(Select)
Vue.use(FormModel)
Vue.use(Table)
Vue.use(Icon)
Vue.use(Modal)
Vue.use(Popconfirm)
Vue.use(Upload)
Vue.prototype.$message = message
Vue.prototype.$modal = modal
Vue.config.productionTip = false

new Vue({
  router,
  render: (h) => h(App),
}).$mount('#app')
